@namespace DevToys.Blazor.Components.UIElements
@using DevToys.Api;
@inherits StyledComponentBase

<UITextInputWrapper @ref="_textInputWrapper" UITextInput="@UISingleLineTextInput">
    <TextBox IsVisible="@UISingleLineTextInput.IsVisible"
             IsEnabled="@(UISingleLineTextInput.IsEnabled && IsActuallyEnabled)"
             Text="@UISingleLineTextInput.Text"
             IsReadOnly="@UISingleLineTextInput.IsReadOnly"
             TextChanged="@OnTextChanged"
             ParentComponent="_textInputWrapper" />
</UITextInputWrapper>